package com.myproject.shop.service.impl;


import com.myproject.shop.domain.Inventory;
import com.myproject.shop.mapper.InventoryMapper;
import com.myproject.shop.service.IInventoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service

    public class InventoryServiceImpl implements IInventoryService {

        @Resource
        private InventoryMapper inventoryMapper;

        @Override
        public Inventory selectInventoryById(Integer iid) {
            return inventoryMapper.selectInventoryById(iid);
        }

        @Override
        public int increaseStock(Inventory inventory) {
            return inventoryMapper.increaseStock(inventory);
        }
    }

